<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>分享得门票</title>
    <script src="/public/sp/js/mui.min.js"></script>
    <link href="/public/sp/css/mui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/public/sp/css/style.css" />
    <link rel="stylesheet" href="/public/sp/css/iconfont.css" />
    <link rel="stylesheet" href="/public/sp/css/me.css" />
    <link rel="stylesheet" href="/public/sp/css/shoupiao.css" />
    <style type="text/css">
    	img{width: 100%;}
    	.phone_box{background: transparent; min-width: 320px; max-width: 640px; margin: 0 auto; padding: 0; position: fixed; left: 0; top: 20%;}
    	.mask{background: rgba(0,0,0,.95);}
    </style>
</head>
<body>
	<div class="mui-content lq_content">
	    <div class="top"><img src="/public/sp/images/bac_cg.png"></div>
	    <div class="lqnr clearfix">
	    	<span class="left"><img src="{$item['thumb']}"></span>
			<span class="center">{$item['name']}</span>
			<span class="right">x1</span>
	    </div>
	    <div class="lq_btn"><a href="{:url('/index/index/ks_list')}"><img src="/public/sp/images/lq_btn.png"></a></div>
	</div>
	<!--手机号码绑定弹出框-->
	<div class="mask" style="display: block;" id="errormsg">
		<div class="phone_box" style="width: 100%;">
			<img src="/public/sp/images/baoxiang.gif">
		</div>
	</div>
<script type="text/javascript">
    //定义显示的时间，因为定时任务是先把要执行的方法加载后，在1秒后再执行，所以可以比页面上的秒数少一秒，这一点须要根据须要高速
    var time = 0;
    //创建定时器
    var name = setInterval(
        function(){
            //获取id  timer元素的数据
            var timer = document.getElementById("errormsg");
            //如果秒数大于0
            if(time > 0){
                //将秒数写入到页面并将秒数减一
                timer.innerHTML = time-- ;              
            }else{
                //清除定时任务 
                clearInterval(name);
                //跳转
                timer.style.display= "none"; 
            }
        }   ,
        //每秒执行一次
        2000
    );
</script>
</body>

</html>
